//
//  UIImage+Utility.h
//  XHImageViewer
//
//

#import <UIKit/UIKit.h>

@interface UIImage (Utility)
+ (UIImage *)fastImageWithData:(NSData *)data;
+ (UIImage *)fastImageWithContentsOfFile:(NSString *)path;
+ (UIImage *)sc_imageWithSize:(CGSize)size arrowWidth:(CGFloat)arrowWidth arrowHeight:(CGFloat)arrowHeight arrowPosition:(CGFloat)position;
+ (UIImage *)qrCodeImageWithContent:(NSString *)content
                      codeImageSize:(CGFloat)size
                               logo:(UIImage *)logo
                          logoFrame:(CGRect)logoFrame
                                red:(CGFloat)red
                              green:(CGFloat)green
                               blue:(CGFloat)blue;
+ (UIImage *)codeImageWithStr:(NSString *)string size:(CGSize)size;
+ (UIImage *)codeImageWithUrl:(NSString *)url merchantLogo:(UIImage *)merchantLogo merchantName:(NSString *)merchantName size:(CGSize)size;
+ (NSArray *)getJPEGImagerImgArr:(NSArray *)imageArr compressibilityFactor:(CGFloat)compressibilityFactor;
+ (CIImage *)barcodeImageWithContent:(NSString *)content;
+ (UIImage *)imageForView:(UIView *)view size:(CGSize)size;
+ (UIImage *)compressedImage:(UIImage *)originImage compressionQualityForJPG:(CGFloat)compressionQuality compressibilitySize:(CGFloat)compressibilitySize;
+ (UIImage *)codeImageWithUrl:(NSString *)url merchantName:(NSString *)merchantName size:(CGSize)size longPress:(NSString *)longPress;

+ (CIImage *)qrCodeImageWithContent:(NSString *)content;
@end
